package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.util.Date;

/**
 * 动态互动管理表 dongtaihudong
 * 
 * @author chengenjiang
 * @date 2019-07-16
 */
public class Dongtaihudong extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 动态互动管理Id */
	@Excel(name = "动态互动管理Id")
	private Long dongtaihudongId;
	/** 动态管理Id */
	private Long dongtaiId;
	/** 互动人ID */
	private Long huDongPersonId;
	/**点赞*/
	@Excel(name = "点赞")
	private Integer dianZan;
	/** 评论 */
	@Excel(name = "评论")
	private String pingLun;
	/** 跟帖 */
	@Excel(name = "跟帖")
	private String genTie;
	/** 状态 */
	@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
	private Integer status;
	/** 创建时间 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date createTime;
	/** 修改时间 */
	@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date updateTime;
	/** 扩展字段 */
	@Excel(name = "备注")
	private String attribute;
	//会员信息
	private SysUser sysuser;
	//动态实体
	private Dongtai dongtai;

	public void setDongtaihudongId(Long dongtaihudongId)
	{
		this.dongtaihudongId = dongtaihudongId;
	}

	public Long getDongtaihudongId()
	{
		return dongtaihudongId;
	}
	public void setDongtaiId(Long dongtaiId)
	{
		this.dongtaiId = dongtaiId;
	}

	public Long getDongtaiId()
	{
		return dongtaiId;
	}
	public void setHuDongPersonId(Long huDongPersonId)
	{
		this.huDongPersonId = huDongPersonId;
	}

	public Long getHuDongPersonId()
	{
		return huDongPersonId;
	}
	public void setDianZan(Integer dianZan) 
	{
		this.dianZan = dianZan;
	}

	public Integer getDianZan() 
	{
		return dianZan;
	}
	public void setPingLun(String pingLun) 
	{
		this.pingLun = pingLun;
	}

	public String getPingLun() 
	{
		return pingLun;
	}
	public void setGenTie(String genTie) 
	{
		this.genTie = genTie;
	}

	public String getGenTie() 
	{
		return genTie;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}

	public void setAttribute(String attribute) 
	{
		this.attribute = attribute;
	}

	public String getAttribute() 
	{
		return attribute;
	}
	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dongtaihudongId", getDongtaihudongId())
            .append("dongtaiId", getDongtaiId())
            .append("huDongPersonId", getHuDongPersonId())
            .append("dianZan", getDianZan())
            .append("pingLun", getPingLun())
            .append("genTie", getGenTie())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("attribute", getAttribute())
            .toString();
    }


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Date getUpdateTime() {
		return updateTime;
	}


	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Dongtai getDongtai() {
		return dongtai;
	}

	public void setDongtai(Dongtai dongtai) {
		this.dongtai = dongtai;
	}

	public SysUser getSysuser() {
		return sysuser;
	}

	public void setSysuser(SysUser sysuser) {
		this.sysuser = sysuser;
	}
}
